from django.urls import path
from .views import ExerciseDetailView, ExerciseListView

urlpatterns = [
    path(r'course/<int:course_id>/exercises/',
         ExerciseListView.as_view(), name='exercise-list'),
    path(r'course/<int:course_id>/exercise/<int:exercise_id>/',
         ExerciseDetailView.as_view(), name='exercise-detail'),
]